`timescale 1ns / 1ps

`include "MIPSCPU_COMMON.vh"
`include "TEMP_ROM_COMMON.vh"

module TempROM(
	instr_addr,
	instr
    );

	input[`DATA_WIDTH - 1 : 0] instr_addr;
	output wire[`DATA_WIDTH - 1 : 0] instr;
	
	reg[`DATA_WIDTH - 1 : 0] temp_mem[`TEMP_ROM_SIZE - 1 : 0];
	assign instr = temp_mem[instr_addr[`TEMP_ROM_ADDR_BEGIN : `TEMP_ROM_ADDR_END]];
	
	initial $readmemh("TestFixture/tempROM/tempROM.data", temp_mem);
	
endmodule
